let user=require('../../db/useradmin')



module.exports=async (req,resp)=>{

let objodel=req.body;
let obj={}
for (let key in objodel) {
   if(!(objodel[key]=='全部'||objodel[key]=='')){
    obj[key]=objodel[key]
   }
}
console.log(obj);
      let datas=  await user.find(obj)
console.log(datas);
    resp.render('./admin/useradmin',{userlistdata:datas})

    
}